package com.atguigu.boot.config;

import org.springframework.boot.Banner;
import org.springframework.core.env.Environment;

import java.io.PrintStream;

/**
 * @Author: LDeng
 * @Date: 2021-07-17 16:04
 */
public class MyBanner implements Banner {

    private static final String BANNER= "  ___ ___         .__  .__          \n" +
            " /   |   \\   ____ |  | |  |   ____  \n" +
            "/    ~    \\_/ __ \\|  | |  |  /  _ \\ \n" +
            "\\    Y    /\\  ___/|  |_|  |_(  <_> )\n" +
            " \\___|_  /  \\___  >____/____/\\____/ \n" +
            "       \\/       \\/                  ";


    @Override
    public void printBanner(Environment environment, Class<?> sourceClass, PrintStream out) {
            out.println(BANNER);
            out.println();
    }
}
